/* 全局样式 */
:root {
  --primary-color: #1890ff;
  --secondary-color: #fa8c16;
  --bg-color: #f5f5f5;
  --text-main: #333333;
  --text-secondary: #666666;
  --text-light: #999999;
}

body {
  font-family: "思源黑体", "微软雅黑", "苹方", "Roboto", "Arial", "Helvetica Neue", sans-serif;
  color: var(--text-main);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 1rem;
}

/* 导航区样式 */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 1rem;
}

.navbar-brand img {
  height: 40px;
}

.nav-link {
  color: var(--text-main) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
}

/* 头部Banner区样式 */
.hero-section {
  background-color: #fff;
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  padding-top: 80px;
  display: flex;
  align-items: center;
}

.hero-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-main);
}

.hero-section h2 {
  font-size: 1.5rem;
  color: var(--text-secondary);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #1065b7;
  border-color: #1065b7;
}

.btn-outline-secondary {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-outline-secondary:hover {
  background-color: var(--secondary-color);
  color: #fff;
}

/* 部分标题样式 */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.section-divider {
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 0 auto 2rem;
}

/* 功能卡片样式 */
.feature-card {
  background: #fff;
  border-radius: 6px;
  padding: 1.5rem;
  height: 100%;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(24, 144, 255, 0.1);
  border-radius: 50%;
  margin-bottom: 1rem;
}

.feature-icon i {
  font-size: 1.8rem;
  color: var(--primary-color);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* 技术架构区样式 */
.tech-container {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tech-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* 参与方式区样式 */
.join-card {
  background: #fff;
  border-radius: 6px;
  padding: 1.5rem;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* 贡献者区样式 */
.contributor-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* 联系我们区样式 */
.contact-form {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(24, 144, 255, 0.25);
}

.btn-submit {
  background-color: var(--primary-color);
  color: white;
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 4px;
  transition: all 0.3s;
}

.btn-submit:hover {
  background-color: #1065b7;
}

.social-icon {
  font-size: 1.5rem;
  color: var(--text-light);
  margin: 0 0.5rem;
  transition: color 0.3s;
}

.social-icon:hover {
  color: var(--primary-color);
}

/* 页脚区样式 */
footer {
  padding: 2rem 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0.5rem;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fff;
}

/* 响应式调整 */
@media (max-width: 991px) {
  .hero-section {
    text-align: center;
    padding-top: 100px;
  }
  
  .hero-section .btn-group {
    justify-content: center;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 767px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section h2 {
    font-size: 1.25rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
}

/* AOS动画初始化 */
[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition-property: opacity, transform;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
} 